import Sidebar from '@/components/Sidebar.vue'

// 导出Vue路由模块
export const routes = [
  {
    path: '/Layout',
    component: () => import('@/components/Layout.vue'),
    children: [
      {
        path: '/Home',
        components: {
          default: () => import('@/components/Home.vue'),
          Sidebar: () => import('@/components/Sidebar.vue'),
        },
      },
      {
        path: '/About',
        components: {
          default: () => import('@/components/About.vue'),
          Sidebar: () => import('@/components/Sidebar.vue'),
        },
      },
    ],
  },
]
